import UserType from "./userType";
import Permission from "./permission";

let SideBarItem = {};

SideBarItem.items = [
  {
    icon: "el-icon-fa fa-bar-chart",
    index: "/member",
    title: "团员首页",
    userType: UserType.member,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-id-badge",
    index: "/member/activity",
    title: "活动查询",
    userType: UserType.member,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-id-badge",
    index: "/member/team",
    title: "旅行团查询",
    userType: UserType.member,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-id-badge",
    index: "/member/info",
    title: "提交申请",
    userType: UserType.member,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-book",
    index: "/member/event/select",
    title: "选择项目",
    userType: UserType.member,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-edit",
    index: "/member/event",
    title: "团员项目",
    userType: UserType.member,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-table",
    index: "/member/timetable",
    title: "项目查询",
    userType: UserType.member,
    permission: Permission.no
  },

  {
    icon: "el-icon-fa fa-newspaper-o",
    index: "/member/budget",
    title: "金额查询",
    userType: UserType.member,
    permission: Permission.no
  },

  {
    icon: "el-icon-fa fa-bar-chart",
    index: "/leader",
    title: "团长首页",
    userType: UserType.leader,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-book",
    index: "/leader/activity",
    title: "发布活动",
    userType: UserType.leader,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-book",
    index: "/leader/team",
    title: "发布旅行团",
    userType: UserType.leader,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-book",
    index: "/leader/event",
    title: "发布项目",
    userType: UserType.leader,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-table",
    index: "/leader/timetable",
    title: "团长项目",
    userType: UserType.leader,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-edit",
    index: "/leader/budget",
    title: "金额录入",
    userType: UserType.leader,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-edit",
    index: "/leader/report",
    title: "活动报告",
    userType: UserType.leader,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-edit",
    index: "/leader/email",
    title: "发送通知",
    userType: UserType.leader,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-bar-chart",
    index: "/admin",
    title: "管理员首页",
    userType: UserType.admin,
    permission: Permission.no
  },
  {
    icon: "el-icon-fa fa-fort-awesome",
    index: "/admin/area",
    title: "地区管理",
    userType: UserType.admin,
    permission: Permission.area
  },
  {
    icon: "el-icon-fa fa-graduation-cap",
    index: "/admin/activity",
    title: "活动管理",
    userType: UserType.admin,
    permission: Permission.activity
  },
  {
    icon: "el-icon-fa fa-group",
    index: "/admin/team",
    title: "旅行团管理",
    userType: UserType.admin,
    permission: Permission.team
  },
  {
    icon: "el-icon-fa fa-user",
    index: "/admin/member",
    title: "团员管理",
    userType: UserType.admin,
    permission: Permission.member
  },
  {
    icon: "el-icon-fa fa-user-plus",
    index: "/admin/leader",
    title: "团长管理",
    userType: UserType.admin,
    permission: Permission.leader
  },
  {
    icon: "el-icon-fa fa-book",
    index: "/admin/event",
    title: "项目管理",
    userType: UserType.admin,
    permission: Permission.event
  },
  {
    icon: "el-icon-fa fa-edit",
    index: "/admin/member/event",
    title: "项目修改",
    userType: UserType.admin,
    permission: Permission.memberEvent
  },
  {
    icon: "el-icon-fa fa-id-badge",
    index: "/admin/admin",
    title: "管理员管理",
    userType: UserType.admin,
    permission: Permission.admin
  }
];

export default SideBarItem;
